<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        footer{
            display: flex;
            margin: 15px;
        }
        img{
            width: 60px;
            height: 60px;
        }
        .box footer .d1{
            margin-top: 0px;
        }
        .box footer .d2{
            margin-top: 10px;
        }
        .box footer .right{
            margin-left: 170px;
            margin-top: 20px;
        }
    </style>
</head>

<body>
    <header>已选商品 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;清空</header>  
    <div id="app" class="box">
        <footer class="item" v-for="(ccc,index) in shuzu" v-bind:key="index">
            <div class="left">
                <img v-bind:src="ccc.pic" alt="">
            </div>
            <div class="zhong">
                <div class="d1">{{ccc.name}}</div>
                <div class="d2"> {{ccc.nameb}} <span>{{ccc.namec}}</span></div>
            </div>
            <div class="right">
                <span>- &nbsp;&nbsp; 1&nbsp;&nbsp;+</span>
            </div>
        </footer>
    </div>
</body>

</html>
<script src="../vue-2.5.21.js"></script>
<script>

    //实例化Vue对象
    var v = new Vue({
        el: '#app', 
        data: {
            shuzu: [
                { id: 1, pic: './img/123.jpg', name: '秋刀鱼', nameb: '35', namec: '35'},
                { id: 2, pic: './img/222.jpg', name: '海带鱼', nameb: '45', namec: '35'},
                { id: 3, pic: './img/hua2.jpg', name: '皮皮虾',nameb: '85', namec: '35'},
            ]
        }, 
        computed: {},
        watch: {},
        methods: {},
        filters: {}, 
        directives: {}, 
        components: {},
    })
</script>